<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="org.json.simple.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<script src="resources/js/jquery.json-2.4.js"></script>
<script type="text/javascript">
function insertUser() {
	var jsonValue = {
		id: "abctest10",
		pw: "1",
		birth_y: "1980",
		birth_m: "10",
		birth_d: "10",
		email: "test18@ggongal.com",
		pnum: "01000test18",
		sex: "man",
		marry: "true",
		job: "사무직",
		area: "인천/부천",
		pid: "sadlfkjalsdkf",
		pname: "LG10",
		pserial: "0112222",
		recommend: "hkpark"
	};
	
	$.ajax({
		type: "post",
		url: "./httpUser.ga",
		data: {
			tag: "user_insertJson",
			jsonValue: $.toJSON( jsonValue )
		},
		dataType: "html",
		success: function( data ) {
			$("#result").html( data );
		},
		error: function() {
			alert("오류");
		}
	});
}



</script>
</head>
<body>

<input type="button" value="회원가입 테스트" onclick="insertUser()"/>
<br/>

<br/><br/>
<div id="result"></div>

</body>
</html>